import request from '@/utils/request'

// 履约保证金搜索，分页
export function getProjectDepositList(params) {
  return request({
    url: '/projectDeposit/list',
    method: 'POST',
    params
  })
}

// 单条查询履约保证金
export function selectProjectDeposit(params) {
  return request({
    url: '/projectDeposit/load',
    method: 'POST',
    params
  })
}

// 新增履约保证金信息
export function addProjectDeposit(data) {
  return request({
    url: '/projectDeposit/add',
    method: 'POST',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 查询团队
export function selectTeam(params) {
  return request({
    url: '/projectDeposit/team',
    method: 'post',
    params
  })
}

// 查询履约保证金项目名称
export function selectProjectName(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'POST',
    params
  })
}

// 删除履约保证金
export function deleteProjectDeposit(params) {
  return request({
    url: '/projectDeposit/delete',
    method: 'POST',
    params
  })
}

// 修改履约保证金信息
export function updateProjectDeposit(data) {
  return request({
    url: '/projectDeposit/update',
    method: 'POST',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
// 修改退还保证金状态
export function updateIsReturn(data) {
  return request({
    url: '/projectDeposit/updateIsReturn',
    method: 'POST',
    data
  })
}
// 修改打入保证金状态
export function updateIsTransfer(data) {
  return request({
    url: '/projectDeposit/updateIsTransfer',
    method: 'POST',
    data
  })
}

